#ifndef TESTITEMDELEGATE_H
#define TESTITEMDELEGATE_H
#include <QStyledItemDelegate>

#define POLYGON 4   //等腰三角形直角边长
#define WIDTH 1     //分隔符粗细的一半

class TestItemDelegate : public QStyledItemDelegate
{
    Q_OBJECT

public:
    TestItemDelegate(QObject *parent = nullptr);

protected:
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
};


#endif // TESTITEMDELEGATE_H
